import { createRouter, createWebHashHistory } from 'vue-router'
import { routes } from './routes'
import { beforeEach, afterEach } from './guards'
const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})
router.beforeEach(beforeEach)
router.afterEach(afterEach)

export default router